<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
    String path = request.getContextPath();

			String basePath = request.getScheme() + "://"
					+ request.getServerName() + ":" + request.getServerPort()
					+ path + "/";
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/js/easyui/themes/icon.css">
<script type="text/javascript"
	src="<%=basePath%>/js/easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/js/easyui/locale/easyui-lang-zh_CN.js"></script>

<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/css/backend/common.css">
<title>功能管理</title>
<script type="text/javascript">
	$(function() {

		//初始化数据grid
		$('#data_result')
				.datagrid(
						{
							url : '',
							method : 'post',
							//width: getWidth(0.98),
							loadMsg : "数据装载中....",
							nowrap : false,
							fitColumns : true,
							pagination : true,
							singleSelect : true,
							rownumbers : false,
							columns : [ [
									{
										field : 'cName',
										title : '系统中文名称',
										width : 80,
										align : 'center'
									},
									{
										field : 'eName',
										title : '系统英文标识',
										width : 80,
										align : 'center'
									},
									{
										field : 'ownerName',
										title : '系统负责人名称',
										width : 80,
										align : 'center'
									},
									{
										field : 'noField',
										title : '操作',
										width : 80,
										align : 'center',
										formatter : function(value, rec) {
											var linkUrl = '<a href="initAddOrUpdateSystem.action?isEdit=1&system.id='
													+ rec.id
													+ '">编辑</a> '
													+ ' <a href="#" onclick="deleteSystem('
													+ rec.id + ')">删除</a>';
											return linkUrl;
										}
									} ] ]
						});
		//设置分页控件       
		var p = $('#data_result').datagrid('getPager');
		$(p).pagination({
			pageSize : 10,
			pageNumber : 1,
			pageList : [ 10, 20, 50 ]

		});
	});
</script>
</head>
<body>
	<div class="outerDiv">
		<div class="top_box">
			您的位置：系统用户管理&gt;&gt;<span class="red">功能管理</span>
		</div>
		<div class="btn_box">
			<a href="#" onclick="queryGrid()"><s></s>查询</a>
		</div>
		<table id="data_result"></table>
	</div>
</body>
</html>